package com.datas.db.hibernatebeans;

import com.datas.utils.hibernatebasebean.BaseHibernateEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * Created by jige0727 on 2017/3/12.
 * 角色
 */
@Getter
@Setter
@Entity
public class UmsRole extends BaseHibernateEntity {
    private String role_name;
    private String role_code;

    public UmsRole() {
    }

    public UmsRole(String role_name, String role_code) {
        this.role_name = role_name;
        this.role_code = role_code;
    }

    @Column(nullable = false)
    public String getRole_name() {
        return role_name;
    }

    @Column(nullable = false, unique = true)
    public String getRole_code() {
        return role_code;
    }
}
